import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store'


// 导入elementui
// import '@/utils/elementui'
import ElementUI from 'element-ui'; // 2.1引入结构
Vue.use(ElementUI)
import 'element-ui/lib/theme-chalk/index.css'; // 2.2引入样式
import '@/css/global.css'
// 引入初始化样式
import '@/styles/common.scss'

// 引入懒加载指令插件并进行注册
import {lazyPlugin} from '@/directives'
Vue.use(lazyPlugin)

// 引入全局组件插件并进行注册
import { componentPlugin } from './components'
Vue.use(componentPlugin);
// window.router=router

import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:8081/api'
Vue.prototype.$http = axios
new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
